package com.zking.web.ly;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zking.service.ly.EmailsService;

@Controller
public class EmailsController {
	@Autowired
	EmailsService es;
	
	@RequestMapping("Emails")
	public String sendMail(String to, String subject, String content,String email){
		to=email;
		 subject = "简历审核结果";
		 content = "非常荣幸收到您的简历，在我们仔细阅读您的简历之后，觉得您的简历与该职位的定位很匹配，在此通知您！";
		 System.out.println(to+"  "+subject+"  "+content);
		 es.sendSimpleMail(to, subject, content);
		 return "create";
	}
	
	@RequestMapping("Emails2")
	public String sendMail2(String to, String subject, String content,String email){
		to=email;
		 subject = "简历审核结果";
		 content = "非常荣幸收到您的简历，在我们仔细阅读您的简历之后，却不得不很遗憾的通知您：您的简历与该职位的定位有些不匹配，因此无法进入面试。但您的信息已录入我司人才储备库，当有合适您的职位开放时我们将第一时间联系您，希望在未来我们有机会成为一起拼搏的同事再次感谢您对我们的信任，祝您早日找到满意的工作。";
		 System.out.println(to+"  "+subject+"  "+content);
		 es.sendSimpleMail(to, subject, content);
		 return "create";
	}
}
